home *** CD-ROM | disk | FTP | other *** search
- //-----------------------------------------------------------------------------
- // Base state functionality. Applications must derive new states from this
- // class to add to the engine.
- //
- // Programming a Multiplayer First Person Shooter in DirectX
- // Copyright (c) 2004 Vaughan Young
- //-----------------------------------------------------------------------------
- #ifndef STATE_H
- #define STATE_H
-
- //-----------------------------------------------------------------------------
- // Viewer Setup Structure
- //-----------------------------------------------------------------------------
- struct ViewerSetup
- {
- };
-
- //-----------------------------------------------------------------------------
- // State Class
- //-----------------------------------------------------------------------------
- class State
- {
- public:
- State( unsigned long id = 0 );
-
- virtual void Load();
- virtual void Close();
-
- virtual void RequestViewer( ViewerSetup *viewer );
- virtual void Update( float elapsed );
- virtual void Render();
-
- unsigned long GetID();
-
- private:
- unsigned long m_id; // Application defined ID (must be unique for state switching).
- };
-
- #endif